package cn.kgc.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 商品阶梯价格(SmsSkuLadder)表实体类
 *
 * @author 石浩杰
 * @since 2022-12-06 08:58:27
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "sms_sku_ladder")
@SuppressWarnings("serial")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class SmsSkuLadder extends Model<SmsSkuLadder> implements Serializable {

    //主键
    @TableId(type = IdType.AUTO)
    private Long id;


    /**
     * spu_id
     **/
    @TableField(value = "sku_id")
    private Long skuId;


    /**
     * 满几件
     **/
    @TableField(value = "full_count")
    private Integer fullCount;


    /**
     * 打几折
     **/
    @TableField(value = "discount")
    private Double discount;


    /**
     * 折后价
     **/
    @TableField(value = "price")
    private Double price;


    /**
     * 是否叠加其他优惠[0-不可叠加，1-可叠加]
     **/
    @TableField(value = "add_other")
    private Short addOther;


    //创建时间
    @TableField(value = "creationdate", fill = FieldFill.INSERT)
    @JsonIgnore
    private Date creationdate;


    //修改时间
    @TableField(value = "modifydate", fill = FieldFill.UPDATE)
    @JsonIgnore
    private Date modifydate;


    //逻辑删除标志
    @TableLogic
    @JsonIgnore
    @TableField(fill = FieldFill.INSERT)
    private int deleted;


    //版本
    @Version
    private int version;


}
